package club.hicode.daydayup.controller;

import org.springframework.web.bind.annotation.*;

/**
 * 测试 Controller
 *
 * @author Liu Chunfu
 * @date 2018-05-14 上午10:26
 **/
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping
    public void testGet() {
        System.out.println("get");
    }

    @PostMapping
    public void testPost() {
    }

    @DeleteMapping("/")
    public void testDel() {
    }

    @PutMapping("/put")
    public void testPut() {
    }

    @PostMapping("/post")
    public WPerson wPerson(@RequestBody WPerson person) {
        String s = WebThreadLocal.threadLocal.get();
        System.out.println(s);
        return person;
    }
}
